$(function(){
	$("#loading-first").fadeOut(500);
	var qd=[118.57, 24.82];
	map = new AMap.Map('map', {
		resizeEnable: true,
		zoom: 10,
		center: qd
	});
	{if $Think.get.op=='search'}
		$('header').css('display','none')
		$('.tpl-skiner').css('display','none')
		$('.unit_main_w').css('left',0)
		$('.unit_main_w').css('top',0)
		$('.unit_main_w').css('margin',0)
		$('.unit_main_w').css('width','100%')
		$('.main_w').css('padding',0)
	{/if}
	var where_json=JSON.stringify({insurance_id:["in","{$Think.get.insurance_id}"]})
		Load()
		$.ajax({
			type:'post',
			data:{
				page:1,
				pagnum:10,
				where_json:where_json
			},
			url:"{:url('adminapi/Insurance/insuranceList')}",
			success:function(res){
				console.log(res)
				Load(1)
				if(res.code==1){
					var detail;
					for(var ii=0;ii<res.list.length;ii++){
						if(res.list[ii].insurance_id=={$Think.get.insurance_id}){
							detail=res.list[ii]
						}
						
					}
					if(detail.scale==3){detail.scale2='大型'}else if(detail.scale==2){detail.scale2='中型'}else if(detail.scale==1){detail.scale2='小型'}
					for(var key in detail){
						$(`.${key}`).html(detail[key])
						
					}
				}else{
					Err(res.msg)
				}
			},
			error:function(){
				Load(1)
				Err('请求失败')
			}
		})
})
